package com.zyg.dao;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zyg.pojo.Clas;
import org.apache.ibatis.annotations.Select;

import java.util.List;


public interface ClasMapper extends BaseMapper<Clas> {
    @Select("SELECT c.clas_id, c.clas_name, g.grade_name FROM sys_clas c JOIN sys_grade g ON c.grade_id = g.grade_id")
    List<Clas> getClasList();
}

